home *** CD-ROM | disk | FTP | other *** search
- on hCheckRollover pMouseCast, pRollover
- if pMouseCast > 0 then
- set tMemberName to the name of member pMouseCast
- set tRolloverName to the name of member the memberNum of sprite pRollover of castLib the castLibNum of sprite pRollover
- if tMemberName <> tRolloverName then
- set tMemberName to EMPTY
- end if
- else
- set tMemberName to EMPTY
- end if
- case word 2 of tMemberName of
- "upState":
- hDoButtonRollover(tMemberName, pRollover)
- hChangeCursor("finger cursor")
- if the windowList <> [] then
- repeat while rollOver(pRollover) = 1
- if the mouseDown = 1 then
- exit repeat
- end if
- updateStage()
- end repeat
- end if
- "rolloverState":
- nothing()
- otherwise:
- hUndoButtonRollover()
- hChangeCursor("arrow")
- end case
- updateStage()
- end
-
- on hDoButtonRollover pMemberName, pRollover
- global gsRolloverButton, gsDescriptionText
- hUndoButtonRollover()
- set tsButton to pRollover
- set tNextButtonState to word 2 of the name of member (the memberNum of sprite tsButton + 1) of castLib the castLibNum of sprite tsButton
- if tNextButtonState = "rolloverState" then
- puppetSprite(tsButton, 1)
- set the memberNum of sprite tsButton to the memberNum of sprite tsButton + 1
- set gsRolloverButton to tsButton
- set tSelection to word 1 of the name of member the memberNum of sprite tsButton of castLib the castLibNum of sprite tsButton
- case tSelection of
- "install":
- if (the machineType = 256) and (the platform = "Windows,16") then
- set tSelection to "installWinQT16 description"
- else
- if (the machineType = 256) and (the platform = "Windows,32") then
- set tSelection to "installWinQT32 description"
- else
- set tSelection to "installMacQT description"
- end if
- end if
- set tmDescriptionText to the number of member tSelection
- "run", "quit":
- set tmDescriptionText to the number of member (tSelection && "description")
- end case
- puppetSprite(gsDescriptionText, 1)
- set the memberNum of sprite gsDescriptionText to tmDescriptionText
- end if
- end
-
- on hUndoButtonRollover
- global gsRolloverButton, gsDescriptionText
- if voidp(gsRolloverButton) = 1 then
- set gsRolloverButton to EMPTY
- else
- if gsRolloverButton <> EMPTY then
- set tmDescriptionText to the number of member "blank description"
- set the memberNum of sprite gsDescriptionText to tmDescriptionText
- puppetSprite(gsDescription, 0)
- set tmName to word 1 of the name of member the memberNum of sprite gsRolloverButton of castLib the castLibNum of sprite gsRolloverButton
- set tmNum to the number of member (tmName && "upState")
- set the memberNum of sprite gsRolloverButton to tmNum
- puppetSprite(gsRolloverButton, 0)
- set gsRolloverButton to EMPTY
- end if
- end if
- end
-